package pl.szpadel.android.gadu.packets;

/** Base class for all packages */
public class BasePacket {

	/////////////////////////
	// Package types
	static public final int TYPE_WELCOME = 0x0001;
	static public final int TYPE_LOGIN80 = 0x0031;
	static public final int TYPE_LOGIN80_OK = 0x0035;
	static public final int TYPE_LOGIN80_FAILED = 0x0043;
	static public final int TYPE_LIST_EMPTY = 0x0012;
	static public final int TYPE_NOTIFY_FIRST = 0x000f;
	static public final int TYPE_NOTIFY_LAST = 0x0010;
	static public final int TYPE_STATUS80 = 0x0036;
	static public final int TYPE_NOTIFY_REPLY80 = 0x0037;
	static public final int TYPE_RECV_MSG80 = 0x002e;
	static public final int TYPE_SEND_MSG80 = 0x002d;
	static public final int TYPE_SEND_MSG_ACK = 0x0005;
	static public final int TYPE_PING = 0x0008;
	static public final int TYPE_DISCONNECT = 0x000B;
	static public final int TYPE_USERLIST_REQUEST80 = 0x002f;
	static public final int TYPE_USERLIST_REPLY80 = 0x0030;
	static public final int TYPE_REMOVE_NOTIFY = 0x000e;
	static public final int TYPE_ADD_NOTIFY = 0x000d;
	static public final int TYPE_NEW_STATUS80 = 0x0038;

	/////////////////////////
	// Data fields
	private int mType;
	
	/////////////////////////
	// Methods
	
	/// Constructor - initlaizes packe with header
	protected BasePacket(int type) {
		mType = type;
	}
	
	/// Returns packet type
	public int getType() { return mType; }
	
}
